<template>
  <div class="class-manage">
    <h2>班级管理</h2>
  </div>
</template>

<script>
export default {
name: "courseManager",
beforeRouteEnter(to, from, next) {
console.log("准备切换到courseManager组件....");
next();
},
beforeRouteLeave(to, from, next) {
console.log("准备离开courseManager组件....");
next();
},
};
</script> 